import React, { useEffect, useState } from 'react'

const useRowHeight = () => {

  const [height, setHeight] = useState(0);

  useEffect(() => {
    setTimeout(() => {
      const h = document.querySelector("[class*='table_table'] thead")?.clientHeight;
      console.log("height", h)
      setHeight(h || 37);
    }, 1)
  }, [])

  return height;
  
}

export default useRowHeight
